<template>
    <div class="content-wrapper">
        <h3>网点查询</h3>

        <div id="container"></div>

    </div>
</template>

<script>

    import AMap from 'AMap'

    let map
    export default {
        name: "lattice-point",
        data() {
            return {
            }
        },
        mounted() {
            this.init()
        },
        methods: {
            init() {
                map = new AMap.Map('container', {
                    center: [116.397428, 39.90923],
                    resizeEnable: true,
                    zoom: 10
                })
                AMap.plugin(['AMap.ToolBar', 'AMap.Scale'], function () {
                    map.addControl(new AMap.ToolBar())
                    map.addControl(new AMap.Scale())
                })
            }
        }
    }
</script>

<style scoped>
    #container {
        width: 100%;
        height: 500px;
    }
</style>
